package com.dianping.cat.core.dal;

import java.util.List;
import org.unidal.dal.jdbc.AbstractDao;
import org.unidal.dal.jdbc.DalException;
import org.unidal.dal.jdbc.Readset;
import org.unidal.dal.jdbc.Updateset;

public class ProjectDao
  extends AbstractDao {
/* 11 */   public Project createLocal() { return new Project(); }





/* 17 */   public int deleteByPK(Project proto) throws DalException { return getQueryEngine().deleteSingle(ProjectEntity.DELETE_BY_PK, proto); }




  public List<Project> findAll(Readset<Project> readset) throws DalException {
/* 23 */     Project proto = new Project();

/* 25 */     return getQueryEngine().queryMultiple(ProjectEntity.FIND_ALL, proto, readset);
  }






  public Project findByPK(int keyId, Readset<Project> readset) throws DalException {
/* 34 */     Project proto = new Project();

/* 36 */     proto.setKeyId(keyId);

/* 38 */     return (Project)getQueryEngine().querySingle(ProjectEntity.FIND_BY_PK, proto, readset);
  }






  public Project findByDomain(String domain, Readset<Project> readset) throws DalException {
/* 47 */     Project proto = new Project();

/* 49 */     proto.setDomain(domain);

/* 51 */     return (Project)getQueryEngine().querySingle(ProjectEntity.FIND_BY_DOMAIN, proto, readset);
  }






  public Project findByCmdbDomain(String domain, Readset<Project> readset) throws DalException {
/* 60 */     Project proto = new Project();

/* 62 */     proto.setDomain(domain);

/* 64 */     return (Project)getQueryEngine().querySingle(ProjectEntity.FIND_BY_CMDB_DOMAIN, proto, readset);
  }








/* 74 */   protected Class<?>[] getEntityClasses() { return new Class[] { ProjectEntity.class }; }



/* 78 */   public int insert(Project proto) throws DalException { return getQueryEngine().insertSingle(ProjectEntity.INSERT, proto); }





/* 84 */   public int updateByPK(Project proto, Updateset<Project> updateset) throws DalException { return getQueryEngine().updateSingle(ProjectEntity.UPDATE_BY_PK, proto, updateset); }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/core/dal/ProjectDao.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */